import random
n = int(input("Количество выстрелов:"))
a = 0
shoot = 0
while a < n:
    a = a + 1
    x = random.randint(-100, 100)
    y = random.randint(-100, 100)
    if x > 0 and x <6 and y > 0 and y > (-9):
        shoot = shoot + 1
    elif x < 0 and x > (-8) and y > 0 and y < 6:
            shoot = shoot + 1
    elif x < 0 and x >(-8) and y < 0  and y > (-9):
        shoot = shoot + 1
        print("Количество попаданий:", shoot)
    
